package gui;

import javax.swing.JLabel;

import model.PlayerCharacter;
import model.Stats;

@SuppressWarnings("serial")
public class StatLabel extends JLabel {
    
    private PlayerCharacter my_character;
    private int stat;
    
    public StatLabel(final PlayerCharacter the_character, int the_stat) {
	my_character = the_character;
	stat = the_stat;
	setText("" + Stats.getStat(stat) + ": " + my_character.attributes[stat]);
    }
    
    public void refresh() {
	setText("" + Stats.getStat(stat) + ": " + my_character.attributes[stat]);
    }
    
}
